Information processing apparatus, method for controlling the same, and computer-readable medium

ABSTRACT

An information processing apparatus that communicates with a communication apparatus includes a connecting unit that connects to a first access point in the communication apparatus, a connection-information acquisition unit that acquires connection information for connecting to a second access point in the communication apparatus via the first access point, a storage unit that stores the acquired connection information in a memory, and a receiving unit that receives an instruction to transmit data. Upon receipt of an instruction to transmit data when the connecting unit is not connected to the second access point, the connecting unit connects to the second access point using the stored connection information stored in the storage unit, and when the connecting unit is connected to the second access point, the first access point is disabled.

BACKGROUND

Field

Aspects of the present invention generally relate to an informationprocessing apparatus that communicates with a communication apparatus, amethod for controlling the same, and a computer-readable medium.

Description of the Related Art

There is a known communication system in which an information processingapparatus, such as a smartphone, connects to a communication apparatus,such as a printer, to perform data communication. One example of amethod for connecting an information processing apparatus to acommunication apparatus is a method of directly connecting to thecommunication apparatus not via an external access point (a wireless LANrouter) connected to the Internet. The method allows an informationprocessing apparatus to communicate with a communication apparatus evenunder an environment in which no external access point is present aroundthe information processing apparatus and an environment in which noexternal access point is available.

However, when an information processing apparatus and a communicationapparatus are connected together not via an external access point, theinformation processing apparatus cannot sometimes use the Internet.

Japanese Patent Laid-Open No. 2014-207650 discloses a mobilecommunication terminal that starts to connect to a digital camera whenstarting data communication with the digital camera and releases theconnection to the digital camera when terminating the data communicationwith the digital camera.

The technique disclosed in Japanese Patent Laid-Open No. 2014-207650needs to perform a connection setting process in advance forestablishing connection to a destination communication apparatus toautomatically switching destinations. However, the connection settingprocess generally involves troublesome operations for the user, such asacquiring connection information for connecting to the communicationapparatus and inputting a predetermined password. The techniquedisclosed in Japanese Patent Laid-Open No. 2014-207650 does not consideruser convenience in the connection setting process. Thus, the techniquedisclosed in Japanese Patent Laid-Open No. 2014-207650 has a problem inthat the connection setting process involves troublesome operations forthe user.

SUMMARY

Aspects of the present invention provide an information processingapparatus that starts connection to a communication apparatus withouttroublesome operations for the user, a method for controlling the same,and a computer readable medium.

An information processing apparatus configured to communicate with acommunication apparatus includes a connecting unit, aconnection-information acquisition unit, a storage unit, and a receivingunit. The connecting unit is configured to connect to a first accesspoint in the communication apparatus without receiving input ofconnection information. The connection-information acquisition unit isconfigured to acquire connection information for connecting to a secondaccess point in the communication apparatus via the first access pointconnected to the connecting unit. The storage unit is configured tostore the connection information acquired by the connection-informationacquisition unit in a memory. The receiving unit is configured toreceive an instruction to transmit data. When the receiving unitreceives an instruction to transmit data in a state where the connectingunit is not connected to the second access point, the connecting unitconnects to the second access point using the connection informationstored in the storage unit. When the connecting unit is connected to thesecond access point, the first access point is disabled.

Further features of aspects of the present invention will becomeapparent from the following description of exemplary embodiments withreference to the attached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1A is a diagram illustrating a communication mode of acommunication apparatus according to an embodiment of the presentinvention.

FIG. 1B is a diagram illustrating a communication mode of acommunication apparatus according to an embodiment of the presentinvention.

FIG. 2 is a diagram illustrating the configuration of an informationprocessing apparatus and a communication apparatus according to anembodiment of the present invention.

FIG. 3 is a diagram of an example screen when an application is staredaccording to an embodiment of the present invention.

FIG. 4 is a diagram of an example of a communication-mode setting screenaccording to an embodiment of the present invention.

FIG. 5 is a diagram of an example of a content print screen according toan embodiment of the present invention.

FIG. 6 is a diagram of an example of a printer detection screenaccording to an embodiment of the present invention.

FIG. 7 is a flowchart illustrating a process that the informationprocessing apparatus executes when setting a communication modeaccording to an embodiment of the present invention.

FIG. 8 is a diagram of an example of an access-point selection screenaccording to an embodiment of the present invention.

FIG. 9 is a diagram of an example of a password input screen accordingto an embodiment of the present invention.

FIG. 10 is a flowchart illustrating a process that the informationprocessing apparatus executes when starting data communication accordingto an embodiment of the present invention.

FIG. 11 is a flowchart illustrating a process that the informationprocessing apparatus executes when starting data communication accordingto an embodiment of the present invention.

DESCRIPTION OF THE EMBODIMENTS

Embodiments of the present invention will be described hereinbelow byway of illustration with reference to the drawings. It to be understoodthat by those skilled in the art that aspects of the present inventioncan be changed or modified without departing from the spirit and scopeof aspects of the present invention.

First Embodiment

An information processing apparatus according to a first embodiment ofthe present invention will be described. Although this embodimentillustrates a smartphone as an example of the information processingapparatus, this is given for mere illustration, and any otherinformation processing apparatuses, such as a mobile terminal, anotebook computer, a tablet terminal, a personal digital assistant(PDA), and a digital camera, can be used. Although this embodimentillustrates a printer as an example of the communication apparatus, thisis given for mere illustration, and any other communication apparatusesthat can communicate with the information processing apparatus can beused. Examples of the printer include an ink-jet printer, a color laserprinter, and a monochrome printer. Aspects of the invention can also beapplied to copying machines, facsimile machines, mobile terminals,smartphones, notebook computers, PDAs, digital cameras, and the like.Aspects of the invention can also be applied to multifunctionalperipherals having a copying function, a facsimile function, and aprinting function.

First, the configuration of the information processing apparatusaccording to this embodiment and the configuration of a communicationapparatus that can communicate with the information processing apparatusof this embodiment will be described with reference to a block diagramof FIG. 2. While this embodiment will be described using the followingconfiguration as an example, this embodiment is applicable toapparatuses capable of communicating with communication apparatuses andis not limited to the drawing.

An information processing apparatus 201 is the information processingapparatus of this embodiment. The information processing apparatus 201includes an input interface 202, a CPU 203, a ROM 204, a RAM 205, anexternal storage unit 206, an output interface 207, a display unit 208,and a network interface 211. The information processing apparatus 201further includes a communication unit (not shown) for connecting to theInternet via a mobile communication network, such as 3G and Long-TermEvolution (LTE).

The input interface 202 is an interface for receiving data input andoperation instructions from the user using a mouse 210 or a keyboard209.

The CPU 203 is a system control unit, which controls the whole of theinformation processing apparatus 201.

The ROM 204 stores fixed data, such as control programs that the CPU 203executes, data tables, and embedded operating system (hereinafterreferred to as “OS”) programs. In this embodiment, the control programsstored in the ROM 204 control software implementation, such asscheduling, task switching, and interrupt processing, under the controlof the embedded OS stored in the ROM 204.

One example of the RAM 205 is a static random access memory (SRAM) thatneeds a backup power source. The RAM 205 can store important data, suchas program control variables, without volatilizing them because the RAM205 uses a data backup primary cell. The RAM 205 further has a memoryarea for storing setting information regarding the informationprocessing apparatus 201, management data regarding the informationprocessing apparatus 201, and the like. The RAM 205 is used also as amain memory and a work memory of the CPU 203.

The external storage unit 206 stores an application for providing aprint executing function, a print-information generation program forgenerating print information that can be interpreted by a communicationapparatus 251. The external storage unit 206 also stores variousprograms, such as a program for controlling transmission and receptionof information transmitted to and received from the communicationapparatus 251 via the network interface 211, and various pieces ofinformation that these programs use.

The output interface 207 is an interface for controlling display of dataand notification of the status of the information processing apparatus201 on the display unit 208.

Examples of the display unit 208 include a light-emitting diode (LED)and a liquid crystal display (LCD), on which data and the status of theinformation processing apparatus 201 are displayed. Furthermore,operating devices, such as a numeral input key, a mode setting key, adetermination key, a cancel key, and a power key, may be disposed on thedisplay unit 208 to receive input from the user.

The network interface 211 has a configuration for connecting theinformation processing apparatus to an external device, such as thecommunication apparatus 251. For example, the network interface 211 canconnect to an access point (not shown) in the communication apparatus251. Connecting the network interface 211 to the access point in thecommunication apparatus 251 enables the information processing apparatus201 and the communication apparatus 251 to communicate with each other.The communication may be established directly via a wirelesscommunication or via an external access point on a wired network.Examples of a communication system include Wireless Fidelity (Wi-Fi®),Bluetooth®, and Near Field Communication (NFC, ISO/IEC IS 18092).

The communication apparatus 251 includes a network interface 252, a RAM253, a ROM 254, a CPU 255, and a print engine 256. The network interface252 has, as the access point in the communication apparatus 251, anaccess point for connecting to an external device, such as theinformation processing apparatus 201. The access point can connect tothe network interface 211 of the information processing apparatus 201.The communication may be established directly via a wirelesscommunication or via an external access point on a wired network.Examples of a communication system include Wi-Fi®, Bluetooth®, and NFC.The network interface 252 may include hardware that serves as an accesspoint or may operate as the access point using software for causing thenetwork interface 252 to serve as an access point. This embodimentincludes two access points in the communication apparatus 251: an accesspoint that is enabled when a connection setting mode is set and anaccess point that is enabled when a direct communication mode is set.

One example of the RAM 253 is a SRAM that needs a backup power source.The RAM 253 can store important data, such as program control variables,without volatilizing them because the RAM 253 uses a data backup primarycell. The RAM 253 further has a memory area for storing settinginformation regarding the communication apparatus 251, management dataregarding the communication apparatus 251, and the like. The RAM 253 isused also as a main memory and a work memory of the CPU 255 and stores areception buffer for temporarily storing print information received fromthe information processing apparatus 201 and various pieces ofinformation.

The ROM 254 stores fixed data, such as control programs that the CPU 255executes, data tables, and OS programs. In this embodiment, the controlprograms stored in the ROM 254 control software implementation, such asscheduling, task switching, and interrupt processing, under the controlof the embedded OS stored in the ROM 254.

The CPU 255 is a system control unit, which controls the whole of thecommunication apparatus 251.

The print engine 256 forms images on a printing medium, such as paper,using a printing material, such as ink, on the basis of informationstored in the RAM 253 or a print job received from the informationprocessing apparatus 201 or the like to output the result of printing.

The information processing apparatus 201 may be loaded with a memory asan optional device, such as an external HDD and a secure digital (SD)card, so that information to be stored in the information processingapparatus 201 can be stored in the memory.

Although this embodiment assigns the tasks of the information processingapparatus 201 and the communication apparatus 251 as described above,this is not intended to limit aspects of the invention, and any otherassignments may be adopted.

Examples of a communication mode set for the communication apparatus 251will be described with reference to FIGS. 1A and 1B.

The communication mode is a mode for the communication apparatus 251 tocommunicate with an external apparatus and is set on the communicationapparatus 251. In this embodiment, the communication apparatus 251 iscapable of communication using a connection configuration called aninfrastructure connection (hereinafter referred to as “infraconnection”) or a direct connection, for which a communication modeaccording to the connection configuration is set. Hereinafter, acommunication mode for establishing communication using the infraconnection is referred to as an infra communication mode, and acommunication mode for establishing communication using the directconnection is referred to as a direct communication mode. In thisembodiment, the communication apparatus 251 receives a command forsetting a communication mode from the information processing apparatus201 to thereby set the communication mode according to the command. Thecommunication modes that can be set on the communication apparatus 251are given for mere illustration. The communication apparatus 251 may beconfigured to use at least a communication mode for establishingcommunication using a connection configuration in which connection tothe Internet cannot be established (the direct communication mode inthis embodiment).

First, the infra communication mode will be described with reference toFIG. 1A. The infra communication mode is a communication mode for thecommunication apparatus 251 and an external apparatus to connecttogether via an access point in the communication apparatus 251 and anaccess point outside the external apparatus. In this embodiment, thecommunication apparatus 251 in the infra communication mode communicateswith the information processing apparatus 201 via a router 101 servingas an external access point. The router 101 is capable of connecting tothe Internet 102, allowing the information processing apparatus 201 andthe communication apparatus 251 to connect to the Internet 102 that havecommunication via the router 101. In this embodiment, an access pointoutside the information processing apparatus 201 and the communicationapparatus 251 and capable of connecting to the Internet, like the router101, is referred to as an external access point.

Next, the direct communication mode will be described with reference toFIG. 1B. The direct communication mode is a communication mode for thecommunication apparatus 251 and an external apparatus to communicatewith each other using direct connection. In this embodiment, the directconnection has a configuration in which the information processingapparatus 201 and an access point in the communication apparatus 251connect together in peer-to-peer fashion. This is given for mereillustration, and any other configurations in which the informationprocessing apparatus 201 and the communication apparatus 251 connecttogether in peer-to-peer fashion may be used in aspects of theinvention. That is, the information processing apparatus 201 may connectto the communication apparatus 251 in peer-to-peer fashion by, forexample, a WLAN connection using an ad hoc mode and a connection usingBluetooth®, not via the access point in the communication apparatus 251.The information processing apparatus 201 may use a communicationstandard, Wi-Fi Direct®. Since the communication apparatus 251 in whichthe direct communication mode is set is capable of communicating withthe information processing apparatus 201 not via an external accesspoint, the communication apparatus 251 can operate so as to communicatewith the information processing apparatus 201 even without a connectableexternal access point.

In contrast, the communication apparatus 251 in which the directcommunication mode is set and which is not equipped for WAN, such as anexternal wireless LAN router, is not capable of connecting to theInternet. The information processing apparatus 201, when capable ofdirect connection to the communication apparatus 251, performscommunication using the direct connection in priority to a communicationvia a mobile communication network. The information processing apparatus201 in the direct connection mode cannot connect to the Internet. Forthis reason, when the information processing apparatus 201 shifts from astate where it connects to the Internet via a mobile communicationnetwork to the direct connection status, the connection between theinformation processing apparatus 201 and the Internet may beinterrupted.

In this embodiment, an example of an information processing apparatusconfigured to prevent connection to the Internet from being continuouslyinterrupted will be described. To this end, the information processingapparatus releases direct connection when communication with acommunication apparatus using direct connection ends and reconnects tothe Internet. Furthermore, in this embodiment, an example of aninformation processing apparatus configured to maintain connection tothe Internet as long as possible will be described. To this end, theinformation processing apparatus starts direct connection when a needfor communication with the communication apparatus arises. Furthermore,in this embodiment, an example of an information processing apparatusconfigured to omit troublesome connection setting for starting directconnection will be described. To this end, the information processingapparatus acquires connection information from a communication apparatusand stores the connection information when the communication mode of thecommunication apparatus is set and uses the connection information everytime direct connection is established.

Next, a method for setting a communication mode on the communicationapparatus 251 will be described. In setting a communication mode on thecommunication apparatus 251, a connection setting mode is used. Theconnection setting mode is a mode for setting one of the abovecommunication modes on the communication apparatus 251 and is set on thecommunication apparatus 251. In this embodiment, the communicationapparatus 251 in which the connection setting mode is set sets the infracommunication mode or the direct communication mode on the communicationapparatus 251 itself according to an instruction from the informationprocessing apparatus 201. The connection setting mode is set on thecommunication apparatus 251 by the user performing an operation or inputfor setting a communication mode on the communication apparatus 251.

The communication apparatus 251 enables an access point having a serviceset identifier (SSID, hereinafter referred to as “communicationapparatus SSID”) generated according to a predetermined rule(hereinafter referred to as “generation rule”) in response to thesetting of the connection setting mode. The SSID is the identificationname of the access point. The communication apparatus SSID is an SSIDthat is enabled only when the communication apparatus 251 is in theconnection setting mode and is distinguished from the SSID of anexternal access point, such as a wireless LAN router, because it isgenerated under a generation rule. When the access point is enabled asthe connection setting mode is set, the communication apparatus 251broadcasts, as a beacon packet, connection information for connecting tothe access point (communication apparatus SSID, cipher settings, and soon) to the surroundings. By detecting the access point of thecommunication apparatus 251 by receiving the packet, an apparatus thatdesires to connect to the communication apparatus 251 can connect to thecommunication apparatus 251 via the access point. For example, theinformation processing apparatus 201 acquires the communicationapparatus SSID and sets the communication apparatus SSID as adestination SSID indicating the destination of the informationprocessing apparatus 201. Thus, the information processing apparatus 201connects to the communication apparatus 251 set in the connectionsetting mode via the access point of the communication apparatus 251.The access point corresponding to the communication apparatus SSID isused only in setting a communication mode, and is therefore at asecurity level lower that of an access point corresponding to a directconnection SSID, described later. This allows an apparatus that desiresto connect to the communication apparatus 251 to connect to an accesspoint corresponding to the communication apparatus SSID without usingconnection information, such as a password, (without an operation, suchas inputting a password).

Next, a method for setting a communication mode on the communicationapparatus 251 performed by the information processing apparatus 201connected to the communication apparatus 251 in which the connectionsetting mode is set will be described.

The information processing apparatus 201 sets a communication mode onthe communication apparatus 251 when a predetermined applicationinstalled in the information processing apparatus 201 and stored in theROM 204 or a hard disk drive (HDD, not shown) of the informationprocessing apparatus 201 is active. The predetermined application is anapplication for setting a communication mode on the communicationapparatus 251 and for causing the communication apparatus 251 to printimage data in the information processing apparatus 201 or content on theInternet, which is hereinafter referred to as a printing application.The printing application may have other functions in addition to thefunction of setting a communication mode on the communication apparatus251 and the print function. For example, the printing application mayhave the function of scanning a document placed in the communicationapparatus 251 having a scanning function, a function for performinganother setting on the communication apparatus 251, and a function forchecking the state of the communication apparatus 251.

FIG. 3 illustrates an example of a screen displayed on the display unit208 when the printing application is started. The user can use thefunctions of the communication apparatus 251, such as printing a desiredimage and setting the communication apparatus 251, via a startup screen300. Upon detecting a press of a printer set-up button 303, theinformation processing apparatus 201 displays a communication-modesetting screen 400 shown in FIG. 4 on the display unit 208. The user canset a communication mode on the communication apparatus 251 by doinginput on the communication-mode setting screen.

FIG. 4 illustrates an example a screen for setting a communication mode,which is displayed on the display unit 208 using the printingapplication. When the printer set-up button 303 shown in FIG. 3 ispressed, the setting screen 400 is displayed on the display unit 208. Anotification area 401 displays a message for prompting the user to setthe communication apparatus 251 in the connection setting mode. Themessaging to the user may be performed by the communication apparatus251. For example, when the communication apparatus 251 is started forthe first time, the communication apparatus 251 may display a message ona display unit or the like of the communication apparatus 251.

When the user who checks the notification area 401 sets thecommunication apparatus 251 in the connection setting mode, thecommunication apparatus 251 enters a state where it can connect to anexternal apparatus using the communication apparatus SSID. Thecommunication apparatus 251 may have a configuration in which theconnection setting mode is set without a user operation. For example,the communication apparatus 251 may be configured to be automaticallyset to the connection setting mode when started for the first time. Thisconfiguration allows the operation of setting the connection settingmode to be omitted at the set-up of the communication apparatus 251,improving the user convenience. As described above, when the connectionsetting mode is set, the communication apparatus 251 generates acommunication apparatus SSID. The communication apparatus SSID may begenerated when the connection setting mode is set on the communicationapparatus 251 or may be read from a generated SSID stored in a memorywhen the connection setting mode is set on the communication apparatus251.

In the setting screen 400, an infra-connection start button 402 is abutton for setting the infra communication mode on the communicationapparatus 251. A direct-connection start button 403 is a button forsetting the direct communication mode on the communication apparatus251. When one of the buttons 402 and 403 is pressed, the informationprocessing apparatus 201 executes an operation for setting acommunication mode corresponding to the pressed button on thecommunication apparatus 251. A back button 404 is a button forterminating a process for the application. A HELP button 405 is a buttonfor displaying a screen that indicates information for assisting theuser, such as applications and a method for operating the communicationapparatus 251.

This configuration allows the user to set a desired communication modeon the communication apparatus 251 by operating the informationprocessing apparatus 201. A method for setting a communication mode isnot limited to the above method. For example, the information processingapparatus 201 may automatically determine a communication mode accordingto the communication environment of the communication apparatus 251 andthe information processing apparatus 201 without receiving a useroperation.

FIG. 7 is a flowchart illustrating a process that the informationprocessing apparatus 201 executes when setting a communication mode inthis embodiment. The process shown in the flowchart is implemented bythe CPU 203 loading a control program stored in the ROM 204 or the HDD(not shown) of the information processing apparatus 201 into the RAM 205and executing the control program. The process shown in the flowchart isstarted in a state where the setting screen 400 is displayed on thedisplay unit 208. When the flowchart shown in FIG. 7 is started, thecommunication apparatus 251 is in the connection setting mode.

First, at S701, the CPU 203 waits for an instruction to set acommunication mode. Specifically, the CPU 203 waits for theinfra-connection start button 402 or the direct-connection start button403 to be pressed. As described above, the communication mode set on thecommunication apparatus 251 is determined according to which of thebuttons 402 and 403 is pressed in the setting screen 400.

Subsequently, at S702, the CPU 203 checks the current connection statusof the information processing apparatus 201 and stores information forachieving the connection status. Conceivable examples of the connectionstatus of the information processing apparatus 201 include a status inwhich the information processing apparatus 201 is connected to anexternal access point and a status in which the information processingapparatus 201 is connected to a mobile communication network. When theinformation processing apparatus 201 is connected to an external accesspoint, the communication apparatus 251 may be set in the infracommunication mode so as to communicate with the communication apparatus251 using the Internet. In contrast, when the information processingapparatus 201 is connected to a mobile communication network without anexternal access point therearound, the information processing apparatus201 may set the communication apparatus 251 in the direct communicationmode so as to communicate with the communication apparatus 251 withoutan external access point. Therefore, when the communication apparatus251 is set in the infra communication mode, the information processingapparatus 201 at S702 is connected to the router 101. When thecommunication apparatus 251 is set in the direct communication mode, theinformation processing apparatus 201 is connected to the mobilecommunication network. When the information processing apparatus 201 iscurrently connected to the router 101, the CPU 203 at S702 stores theSSID of the router 101, a password for connection, and other informationin a memory, such as the RAM 205. When the information processingapparatus 201 is currently connected to a mobile communication network,the CPU 203 stores setting information for connecting to the mobilecommunication network in a memory, such as the RAM 205.

Subsequently, at S703, the CPU 203 determines a communication mode to beset on the communication apparatus 251. Specifically, the CPU 203determines a communication mode to be set on the communication apparatus251 by distinguishing the type of a button pressed at S701. If the infracommunication mode is set on the communication apparatus 251, the CPU203 executes the process at S704. In contrast, if the directcommunication mode is set on the communication apparatus 251, the CPU203 executes the process at S709.

At S704, the CPU 203 performs a process for setting the infracommunication mode on the communication apparatus 251. Specifically,first, the CPU 203 receives a beacon packet that the communicationapparatus 251 is broadcasting via the network interface 211 to acquire acommunication apparatus SSID as information in the packet. Then, the CPU203 sets the communication apparatus SSID as the SSID of the destinationof the information processing apparatus 201 to connect the informationprocessing apparatus 201 and the communication apparatus 251 together inpeer-to-peer fashion. Next, the CPU 203 acquires information regardingan SSID corresponding to an external access point to which thecommunication apparatus 251 can connect from the communication apparatus251. The CPU 203 displays an access-point selection screen 800, as shownin FIG. 8, to prompt the user to select an external access point for usein the infra communication mode. In this embodiment, the router 101 isselected by the user. Subsequently, the CPU 203 transmits SSIDinformation corresponding to the router 101 and a command for settingthe infra communication mode to the communication apparatus 251 byconnection established using the communication apparatus SSID. If apassword is necessary for using the router 101, the CPU 203 may displaya password input screen 900, as shown in FIG. 9, and may transmitpassword information input to an entry portion 901 to the communicationapparatus 251.

Upon receiving the SSID corresponding to the router 101 and the commandfor setting the infra communication mode, the communication apparatus251 releases the connection setting mode. The communication apparatus251 disables an access point corresponding to the communicationapparatus SSID to temporarily release the connection to the informationprocessing apparatus 201. Subsequently, the communication apparatus 251sets the infra communication mode on the communication apparatus 251itself on the basis of the command for setting the infra communicationmode. Furthermore, the communication apparatus 251 connects to therouter 101 on the basis of the SSID information received from theinformation processing apparatus 201. In this embodiment, the CPU 203sets the infra communication mode on the communication apparatus 251 byexecuting the above process.

Subsequently, at S705, the CPU 203 returns the connection status of theinformation processing apparatus 201 to the status before the setting ofthe communication mode on the basis of the information stored at S702.Here, the information processing apparatus 201 is reconnected to therouter 101. If the status before the setting of the communication modeis a status in which the information processing apparatus 201 isconnected to a mobile communication network, the connection to themobile communication network is restarted, and therefore the informationprocessing apparatus 201 is not connected to an external access point.Therefore, if the status before the setting of the communication mode isa status in which the information processing apparatus 201 is connectedto a mobile communication network, the information processing apparatus201 may wait for a user instruction to connect to an external accesspoint after the process at S703. In this case, after the informationprocessing apparatus 201 connects to an external access point to whichthe communication apparatus 251 connects according a user instruction,the process at S706 is executed.

Subsequently, at S706, the CPU 203 displays a list of communicationapparatuses connected to the router 101 on the display unit 208.Specifically, the CPU 203 issues a broadcast that requests a response tothe communication apparatuses connected to the router 101. The CPU 203waits for a response to the broadcast for a fixed time and displays alist of communication apparatuses that respond to the request. Theresponses from the communication apparatuses contain the names and MACaddresses of the communication apparatuses, and the list contains thenames and MAC addresses. Since the communication apparatus 251 isconnected to the router 101 by the process at S704, the list displayedat S706 contains the communication apparatus 251. The CPU 203 selects acommunication apparatus to be connected by the infra connection fromamong the communication apparatuses displayed on the list. In thisembodiment, assume that the communication apparatus 251 is selected.

Subsequently, at S707, the CPU 203 acquires functional informationregarding a printer from the communication apparatus 251. The functionalinformation is information indicating the functions of the printer.Specifically, the functional information is information regardingwhether the communication apparatus 251 has a print function and ascanning function, whether a double-side printing and color/monochromeprinting are supported, the kind and size of printing media, and dataformats available in the functions of the communication apparatus 251.At S707, the CPU 203 transmits a command for requesting functionalinformation to the communication apparatus 251 and receives functionalinformation as a response thereto.

Subsequently, at S708, the CPU 203 registers the communication apparatus251 as a communication apparatus with which the information processingapparatus 201 performs data communication. Specifically, the CPU 203stores identification information regarding the communication apparatus251, such as a MAC address, in a memory, such as the RAM 205 and anexternal HDD (not shown) in association with functional informationacquired at S707 and information indicating that the infra communicationmode is set on the communication apparatus 251. When a communicationapparatus is registered, the name and identification informationregarding the communication apparatus registered on a printer selectionbutton 304 are displayed. Subsequently, the CPU 203 terminates theprocess.

At S709, the CPU 203 performs a process for setting the directcommunication mode on the communication apparatus 251. Specifically,first, the CPU 203 connects the information processing apparatus 201 andthe communication apparatus 251 together in peer-to-peer fashion bysetting a communication apparatus SSID acquired as at S704 as thedestination SSID of the information processing apparatus 201. Next, theCPU 203 acquires information, such as a direct connection SSID and apassword for using direct connection with the communication apparatus251, as direct connection information from the communication apparatus251. Here, the direct connection SSID is an SSID corresponding to theaccess point in the communication apparatus 251 and is used to establisha direct connection with the information processing apparatus 201. Theaccess point corresponding to the direct connection SSID and the accesspoint corresponding to the communication apparatus SSID may be the same.Subsequently, the CPU 203 transmits a command for setting the directcommunication mode to the communication apparatus 251. Upon receivingthe command, the communication apparatus 251 releases the connectionsetting mode to disable the access point corresponding to thecommunication apparatus SSID to temporarily release the connection tothe information processing apparatus 201. Subsequently, thecommunication apparatus 251 sets the direct communication mode on thecommunication apparatus 251 to enable the access point corresponding tothe direct connection SSID. This embodiment sets the directcommunication mode on the communication apparatus 251 by executing theabove process.

Subsequently, at S710, the CPU 203 stores the direct connectioninformation acquired at S709 in a memory, such as the RAM 205 and anexternal HDD (not shown). At that time, the CPU 203 stores the directconnection information without volatilization to thereby hold theinformation without volatilization even if the power of the informationprocessing apparatus 201 is turned off. The stored direct connectioninformation is referred to by the CPU 203 every time the informationprocessing apparatus 201 attempts to directly connect to thecommunication apparatus 251. This configuration allows the informationprocessing apparatus 201 to directly connect to the communicationapparatus 251 without acquiring direct connection information orreceiving user input for connection every time direct connection is tobe established.

Subsequently, at S711, the CPU 203 directly connects to thecommunication apparatus 251. The connection between the communicationapparatus 251 and the information processing apparatus 201 has beenreleased at S709 because the access point corresponding to thecommunication apparatus SSID is disabled. Therefore, the CPU 203directly connects the communication apparatus 251 to the informationprocessing apparatus 201 by setting the direct connection SSID, which isinformation contained in the direct connection information stored atS710, as a destination SSID. At that time, if a password is required forthe direct connection to the communication apparatus 251, the CPU 203uses a password, which is information contained in the direct connectioninformation stored at S710. Thus, the direct connection of theinformation processing apparatus 201 to the access point in thecommunication apparatus 251 allows the information processing apparatus201 to again connect to the communication apparatus 251 using directionconnection. In this manner, the use of the direct connection informationstored at S710 allows the user to directly connect the informationprocessing apparatus 201 to the communication apparatus 251 without aneed for troublesome settings, such as selecting a direct connectionSSID and inputting a password. In this embodiment, the direct connectioninformation used is not cleared for storage. This configuration allowsthe stored direct connection information to be used again when directconnection is needed for processing in data communication, describedlater.

Subsequently, at S712, the CPU 203 acquires functional informationregarding the printer from the communication apparatus 251.Specifically, the CPU 203 transmits a command to send functionalinformation to the communication apparatus 251 and receives thefunctional information in response to the command.

Subsequently, at S713, the CPU 203 registers the communication apparatus251 as a communication apparatus with which the information processingapparatus performs data communication. Specifically, the CPU 203 storesidentification information regarding the communication apparatus 251,such as a MAC address, in a memory, such as the RAM 205, in associationwith the functional information acquired at S712 and informationindicating that the direct communication mode is set on thecommunication apparatus 251. When the communication apparatus 251 isregistered, the name of the registered communication apparatus 251 oridentification information is displayed on the printer selection button304. Subsequently, the CPU 203 terminates the process.

Subsequently, at S714, the CPU 203 releases the direct connectionbetween the information processing apparatus 201 and the communicationapparatus 251. At that time, the CPU 203 clears connection informationthat the OS stores to prevent the direct connection from beingautomatically restarted by an automatic connection function of the OS (afunction of storing connection information regarding an access point towhich the information processing apparatus 201 connected in the past andautomatically connecting to the access point).

Subsequently, at S715, the CPU 203 restores the connection status of theinformation processing apparatus 201 to a status before thecommunication mode setting process on the basis of the informationstored at S702. In this case, the information processing apparatus 201is reconnected to the mobile communication network to which theinformation processing apparatus 201 was connected before. Subsequently,the CPU 203 terminates the process.

As described above, when the information processing apparatus 201 isconnected to the communication apparatus 251 by direct connection,direct connection to the communication apparatus 251 is given precedenceto connection to the Internet 102 via a mobile communication network.For this reason, when the information processing apparatus 201 isconnected to the communication apparatus 251 by direct connection, theinformation processing apparatus 201 cannot use content on the Internet.For this reason, this embodiment sets the direct communication mode onthe communication apparatus 251, stores information for directlyconnecting to the communication apparatus 251, and then temporarilyreleases the direct connection. This configuration allows theinformation processing apparatus of this embodiment to restoreconnection to the Internet after setting the direct communication modeon the communication apparatus 251.

In performing data communication between the information processingapparatus 201 and the communication apparatus 251, the user presses aphotograph print button 301 or a content print button 302 on the startupscreen 300, shown in FIG. 3, which is provided by the printingapplication. For example, data communication is executed after the userpresses the printer set-up button 303, sets direct connection on thecommunication apparatus 251 on the setting screen 400 shown in FIG. 4,and presses the photograph print button 301 or the content print button302. According to the process shown in FIG. 7, when the user sets directconnection, the direct connection is automatically released after thecommunication apparatus 251 is registered. Therefore, for example, evenif the user gives an instruction to perform data communication after aninterval from the setting of direct connection, the informationprocessing apparatus 201 is capable of connecting to the Internet fromthe setting of direct connection to the start of the data communication.Thus, the process shown in FIG. 7 prevents connection of the informationprocessing apparatus 201 to the Internet from being interrupted for along time due to direct connection to the communication apparatus 251.

Next, data communication of the information processing apparatus 201with the communication apparatus will be described in detail. Upondetecting a press of the photograph print button 301, the informationprocessing apparatus 201 displays a screen (not shown), on the displayunit 208, for printing a picture selected by the user from picturesstored in the external storage unit 206. On this screen, the user cancause a communication apparatus displayed on a printer selection button304 to print an image. The printer selection button 304 shows acommunication apparatus with which the information processing apparatus201 performs data communication, which is registered at S708 or S713 inFIG. 7.

Upon detecting a press of the content print button 302, the informationprocessing apparatus 201 displays a content print screen 500, as shownin FIG. 5, on the display unit 208. By doing input on the content printscreen 500, the user can cause an apparatus displayed on the printerselection button 304 to print content acquired via the Internet.

Upon detecting a press of the printer selection button 304, theinformation processing apparatus 201 displays a printer detection screen600, as shown in FIG. 6, on the display unit 208. The printer detectionscreen 600 displays communication apparatuses connected to theinformation processing apparatus 201 via the network interface 211 andcapable of communicating with the information processing apparatus 201.The user can select an apparatus with which data communication isperformed via the printer detection screen 600.

In this embodiment, the communication apparatus 251 is selected on theprinter detection screen 600, and the information processing apparatus201 performs settings and issues a print instruction to thecommunication apparatus 251. Upon detecting a press of an end button305, the information processing apparatus 201 terminates theapplication.

Next, a process in the case where the information processing apparatus201 acquires content on a Web server or the like via the Internet andcauses the communication apparatus 251 to print the acquired contentwill be described with reference to FIG. 5. Printing content needsconnection to the Internet. For this reason, the content print screen500 in FIG. 5 is displayed and available under a situation in which theinformation processing apparatus 201 can use the Internet, such as whenthe information processing apparatus 201 is connected by infraconnection or connected to a mobile communication network.

Upon detecting a press of the content print button 302, the informationprocessing apparatus 201 displays the content print screen 500 on thedisplay unit 208.

When the infra communication mode is set on the communication apparatus251 at that time, the information processing apparatus 201 can access tocontent on a Web server provided that an external access point used forinfra connection is connects to the Internet. In contrast, thecommunication apparatus 251 can be in the direct communication mode.Also in this case, the information processing apparatus 201 of thisembodiment can access to content on a Web server because directconnection with the communication apparatus 251 is released after thecommunication mode is set.

A list display area 501 lists contents that are available via theInternet, from which the user can select content to be printed. Upondetecting selection of content displayed in the list display area 501,the information processing apparatus 201 displays detail informationregarding the selected content in a preview area 502. For the preview ofcontent, not all data constituting the content is needed; only minimuminformation for displaying a thumbnail view may be acquired. Upondetecting a press of a print setting button 503, the informationprocessing apparatus 201 displays a print setting screen (not shown) forperforming various print settings of a destination apparatus (in thiscase, the communication apparatus 251). The user can select desiredprint settings by doing input on the print setting screen. The detailsof various print settings on the print setting screen are determined onthe basis of the functional information acquired at S707 in FIG. 7.

Upon detecting a press of a print button 504, the information processingapparatus 201 executes a process for printing the content selected bythe user using the communication apparatus 251. Specifically, theinformation processing apparatus 201 first acquires image data and so onconstituting the content selected by the user via the Internet 102. Ifthe information processing apparatus 201 is not connected to thecommunication apparatus 251, the information processing apparatus 201executes a process for connecting to the communication apparatus 251 andthen transmits the acquired data, print setting information, and so onas a print job to the communication apparatus 251.

FIG. 10 is a flowchart illustrating a process that the informationprocessing apparatus 201 of this embodiment executes when starting datacommunication. The process shown in the flowchart is implemented by theCPU 203 loading a control program stored in the ROM 204 or the HDD (notshown) of the information processing apparatus 201 into the RAM 205 andexecuting the control program. The process illustrated in the flowchartis started from a state where the process shown in FIG. 7 ends in whichthe communication apparatus 251 is registered as a communicationapparatus for data communication. The process illustrated in theflowchart is started after it is determined by pressing the photographprint button 301 and the content print button 302 that datacommunication is to be performed between the information processingapparatus 201 and the communication apparatus 251.

First, at S1001, the CPU 203 determines whether the network setting ofthe information processing apparatus 201 is valid. One example of thenetwork setting is Wi-Fi communication. Enabling the network setting ofthe information processing apparatus 201 enables the informationprocessing apparatus 201 to execute the infra connection and the directconnection. If the CPU 203 determines that the network setting of theinformation processing apparatus 201 is valid, the CPU 203 executes theprocess at S1003, and if the CPU 203 determines that the network settingof the information processing apparatus 201 is not valid (is invalid),the CPU 203 executes the process at S1002.

At S1002, the CPU 203 displays a screen for instructing the user toenable the network setting of the information processing apparatus 201on the display unit 208. At that time, the CPU 203 may enable thenetwork setting of the information processing apparatus 201 withoutnotifying the user of it. When the information processing apparatus 201detects an access point connected before in a communicable range usingconnection information stored in the OS, the information processingapparatus 201 automatically reconnects to the access point using theconnection information. Therefore, when the information processingapparatus 201 was connected to the communication apparatus 251 before byinfra connection, the information processing apparatus 201 againconnects to the communication apparatus 251 by infra connection. AtS714, this embodiment releases direct connection, at which the CPU 203deletes a history stored in the OS, and therefore the direct connectionbetween the information processing apparatus 201 and the communicationapparatus 251 is not restarted at this point of time. Subsequently, theCPU 203 executes the process at S1001 again.

At S1003, the CPU 203 determines which communication mode is set on theregistered communication apparatus (the communication apparatus 251). Atthat time, the CPU 203 refers to information stored when thecommunication apparatus 251 is registered as a communication apparatusfor data communication (S708 or S713). If the CPU 203 determines thatthe communication apparatus 251 is set to the infra communication mode,the CPU 203 executes the process at S1006, and if the CPU 203 determinesthat the communication apparatus 251 is set to the direct communicationmode, the CPU 203 executes the process at S1004.

Subsequently, at S1004, the CPU 203 checks the current connection statusof the information processing apparatus 201 and stores information forachieving the connection status. Since the user sets the directcommunication mode on the communication apparatus 251 because there isno external access point around the information processing apparatus201, the information processing apparatus 201 is connected to a mobilecommunication network at that time. Therefore, at S1004, the CPU 203stores setting information and so on for connecting to the mobilecommunication network.

At S1005, the CPU 203 sets a direct connection SSID as the destinationSSID of the information processing apparatus 201 on the basis of thedirect connection information stored at S710. At that time, if apassword is needed to connect to the communication apparatus 251, theCPU 203 uses a password to connect the communication apparatus 251 andthe information processing apparatus 201 together on the basis of thedirect connection information stored at S710 during setting of thecommunication mode. Subsequently, the CPU 203 executes the process atS1006.

At S1006, the CPU 203 detects the registered communication apparatus(the communication apparatus 251). Specifically, the CPU 203 issues abroadcast requesting a response to the connection network to which theinformation processing apparatus 201 connects. Subsequently, the CPU 203receives a response from a communication apparatus to which theinformation processing apparatus 201 is directly connected or acommunication apparatus connected to an access point to which theinformation processing apparatus 201 connects. The CPU 203 comparesidentification information contained in the response and theidentification information, such as an MAC address, stored at theregistration of the communication apparatus 251 to detect thecommunication apparatus 251.

Subsequently, at S1007, the CPU 203 executes data communication with theregistered communication apparatus (the communication apparatus 251).Specifically, the CPU 203 transmits a command for a print job or forsetting of the communication apparatus 251 to the communicationapparatus 251 and receives information for displaying the processingstatus of the print job and the status of the communication apparatus251 on the display unit 208 from the communication apparatus 251.

Subsequently, at S1008, the CPU 203 determines which of communicationmodes is set on the registered communication apparatus (thecommunication apparatus 251). At that time, the CPU 203 refers to theinformation stored when the communication apparatus 251 is registered.If the communication apparatus 251 is set to the infra communicationmode, the CPU 203 terminates the process. This is because, when thecommunication apparatus 251 is set to the infra communication mode, theinformation processing apparatus 201 can communicate with both of theInternet and the communication apparatus 251, which eliminates the needfor a process for switching communication lines, such as disconnectingthe communication apparatus 251. In contrast, if the communicationapparatus 251 is set to the direct communication mode, the CPU 203executes the process at S1009.

At S1009, the CPU 203 releases the direct connection between theinformation processing apparatus 201 and the communication apparatus251. At that time, the CPU 203 clears the connection information thatthe OS stores to prevent the direct connection from being automaticallyrestarted by the automatic connection function of the OS (a function ofstoring connection information regarding an access point to which theinformation processing apparatus 201 connected in the past andautomatically connecting to the access point). The connectioninformation stored at S710 is stored in another area different from thatfor the connection information that the OS stores. For this reason, theconnection information stored at S710 is not cleared at S1009.

Subsequently, at S1010, the CPU 203 returns the connection status of theinformation processing apparatus 201 to a status before the datacommunication process is executed on the basis of the information storedat S1004. Here, the information processing apparatus 201 is againconnected to the mobile communication network. Subsequently, the CPU 203terminates the process.

In this manner, at the start of data communication, the informationprocessing apparatus of this embodiment executes direct connection usingdirect connection information acquired in advance and, at the end of thedata communication, releases the direct connection. This configurationallows the information processing apparatus of this embodiment toconnect to the Internet after direct connection is released and torestart the direct connection without operations, such as acquiringdirect connection information and inputting a password. This improvesuser convenience. Furthermore, the information processing apparatus ofthis embodiment automatically acquires direct connection informationfrom the communication apparatus and stores it during execution of acommunication mode setting process, which is absolutely necessary forcommunication with the communication apparatus, to repeatedly use theconnection information for direct connection. This configuration allowsthe information processing apparatus of this embodiment to acquiredirect connection information without receiving a particular userinstruction for acquiring direct connection information. This eliminatesthe need for troublesome user operations for setting direct connection,improving user convenience.

Furthermore, after completion of data communication by directconnection, the CPU 203 releases the direct connection between theinformation processing apparatus 201 and the communication apparatus251. This configuration allows the CPU 203 to restore the connectionbetween the information processing apparatus 201 and the Internet toaccess to content on a Web server, for example, when the content printscreen 500 is to be used again.

Second Embodiment

The first embodiment shows an example of an information processingapparatus that can restart connection to the Internet by releasingdirect connection when data communication ends.

For example, when print data is transmitted via the content print screen500, shown in FIG. 5, the content print screen 500 is displayed alsoafter completion of the transmission. When user selection is receivedagain, the information processing apparatus 201 needs to connect to theInternet to acquire image data constituting content. Therefore, whenprint data is to be transmitted via the content print screen 500, theinformation processing apparatus 201 may release direct connection afterthe transmission ends and restart connection to the Internet.

For example, data stored in the information processing apparatus 201 istransmitted via a screen that displays a list of data stored in theinformation processing apparatus 201. This screen is kept displayedafter the end of the transmission. When user selection is received atthat time, the information processing apparatus 201 only needs to referto the data stored therein and does not need to connect to the Internet.For this reason, when print data is to be transmitted via a screen thatdisplays a list of data stored in the information processing apparatus201, the information processing apparatus 201 may not release thedirection connection to keep the direct connection after completion ofthe transmission.

This embodiment illustrates an example of an information processingapparatus capable of switching direct connection between connection anddisconnection according to the utilization situation when datacommunication ends.

FIG. 11 is a flowchart illustrating a process that the informationprocessing apparatus 201 of this embodiment executes when communicatingwith the communication apparatus 251. The process shown in the flowchartis implemented by the CPU 203 loading a control program stored in theROM 204 or the HDD (not shown) of the information processing apparatus201 into the RAM 205 and executing the control program. The processillustrated in the flowchart is started from a state where the processshown in FIG. 7 ends, in which the communication apparatus 251 isregistered as a destination communication apparatus for datacommunication. The process illustrated in the flowchart is started afterit is determined by pressing the photograph print button 301 or thecontent print button 302 that data communication is to be performedbetween the information processing apparatus 201 and the communicationapparatus 251.

Descriptions of the processes from S1101 to S1110 will be omittedbecause they are the same as the processes from S1001 to S1010.

At S1111, the CPU 203 determines whether direct connection has beenreleased. If it is determined that direct connection has been released,then the CPU 203 executes the process at S1104, and if not, the CPU 203executes the process at S1106.

At S1112, the CPU 203 determines whether to release the directconnection. Specifically, the CPU 203 determines which of an input to aphotograph printing screen or an input to a content printing screen isdone for the data communication. For example, it is determined that datacommunication is executed by an input to a screen for content printingthat uses the Internet, data acquisition and data communication via theInternet cannot be performed again if direct connection is kept. Forthis reason, the CPU 203 determines to release the direct connection andperforms the process at S1109 to restart the connection between theinformation processing apparatus 201 and the Internet. If it isdetermined that data communication is executed by an input to a screenfor photograph printing that does not use the Internet, the CPU 203determines not to release the direct connection and terminates theprocess while keeping the direct connection.

This configuration allows the information processing apparatus of thisembodiment to determine whether to release direct connection accordingto the utilization situation after data communication is performed. Forexample, when data communication is performed for content printing,direct connection is automatically released after the data communicationis performed. Therefore, when the user again gives an instruction toperform content printing, the information processing apparatus 201 canappropriately connect to the Internet. On the other hand, when datacommunication is performed for photograph printing, the directconnection is kept even after the data communication is performed.Therefore, when the user again gives an instruction to performphotograph printing, there is no need to perform direct connectionagain, thus allowing quick data communication.

When the CPU 203 performs data communication for photograph printing andthen shifts to, for example, the screen shown in FIG. 3 or FIG. 5, orwhen an instruction to terminate the application is executed, the directconnection is automatically released. Thus, when the user executes datacommunication for photograph printing and then executes contentprinting, the direct connection has already been released when thecontent printing screen is displayed. This enables appropriate access tothe Internet for content printing.

Other Embodiments

Although the above embodiments illustrate a configuration in which thedirect communication mode and the infra communication mode can be set onthe communication apparatus 251, only the direct communication mode maybe set. In this case, the process of determining which communicationmode is to be set, such as S703, S1003, S1008, S1103, and S1108, can beomitted. A third communication mode other than the direct communicationmode and the infra communication mode may be set so that three or morecommunication modes can be set.

Although the above embodiments illustrate a configuration in which thedirect communication mode and the infra communication mode can be set onthe communication apparatus 251, a communication mode set on thecommunication apparatus 251 is not limited to the above communicationmodes. In other words, any other communication modes in whichapparatuses communicate with each other using some connectingconfiguration may be set on the communication apparatus 251. Forexample, a communication mode for communicating with a single apparatusvia Wi-Fi Direct® and a communication mode for communicating with aplurality of apparatuses via Wi-Fi Direct® may be set on thecommunication apparatus 251. In any cases, the advantageous effects ofaspects of the present invention can be given using a configuration inwhich communication lines are switched when the communication apparatus251 is set in a communication mode for establishing communication usinga connection configuration in which connection to the Internet cannot beestablished.

Although the above embodiments illustrate a process for executing theprinting function, shown in FIG. 10, as an example of a process for datacommunication with the communication apparatus 251, this is not intendedto limit aspects of the present invention. The process of switchingcommunication lines, which is a feature of an aspect of the presentinvention, may be executed every time data communication is performedbetween apparatuses. Therefore, aspects of the present invention canalso be applied to processes for executing a function of scanning adocument placed on the communication apparatus 251, a function ofperforming other settings on the communication apparatus 251, and afunction of acquiring the status of the communication apparatus 251.

The order of the processes of the flowcharts of the above embodimentsmay be changed, not all of the processes may be executed, or the detailsof the processes may be changed provided that the advantageous effectsof the above embodiments are given.

The above embodiments can also be achieved by a process of supplying aprogram for implementing one or more of the functions of the aboveembodiments to a system or apparatus, and executing the program usingone or more processors of the system or apparatus. The above embodimentscan also be achieved using a circuit that achieves one or more functions(for example, an ASIC).

The embodiments of the present invention enable connection to acommunication apparatus without troublesome user operations.

Embodiment(s) of the present invention can also be realized by acomputer of a system or apparatus that reads out and executes computerexecutable instructions (e.g., one or more programs) recorded on astorage medium (which may also be referred to more fully as a‘non-transitory computer-readable storage medium’) to perform thefunctions of one or more of the above-described embodiment(s) and/orthat includes one or more circuits (e.g., application specificintegrated circuit (ASIC)) for performing the functions of one or moreof the above-described embodiment(s), and by a method performed by thecomputer of the system or apparatus by, for example, reading out andexecuting the computer executable instructions from the storage mediumto perform the functions of one or more of the above-describedembodiment(s) and/or controlling the one or more circuits to perform thefunctions of one or more of the above-described embodiment(s). Thecomputer may comprise one or more processors (e.g., central processingunit (CPU), micro processing unit (MPU)) and may include a network ofseparate computers or separate processors to read out and execute thecomputer executable instructions. The computer executable instructionsmay be provided to the computer, for example, from a network or thestorage medium. The storage medium may include, for example, one or moreof a hard disk, a random-access memory (RAM), a read only memory (ROM),a storage of distributed computing systems, an optical disk (such as acompact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™),a flash memory device, a memory card, and the like.

While aspects of the present invention have been described withreference to exemplary embodiments, it is to be understood that theaspects of the invention are not limited to the disclosed exemplaryembodiments. The scope of the following claims is to be accorded thebroadest interpretation so as to encompass all such modifications andequivalent structures and functions.

This application claims the benefit of Japanese Patent Application No.2015-132164, filed Jun. 30, 2015, which is hereby incorporated byreference herein in its entirety.

What is claimed is:
 1. An information processing apparatus configured tocommunicate with a communication apparatus, the information processingapparatus comprising: at least one processor that controls: a firstconnecting unit configured to connect the information processingapparatus with a first access point in the communication apparatuswithout receiving input of connection information from a user; aconnection-information acquisition unit configured to acquire connectioninformation for connecting to a second access point in the communicationapparatus via the first access point with which the informationprocessing apparatus is connected; a storage unit configured to storethe connection information acquired by the connection-informationacquisition unit in a memory; a second connecting unit configured toconnect the information processing apparatus with a mobile communicationnetwork via which communication with Internet is able to be performed; areceiving unit configured to receive transmission instruction totransmit data; and a transmitting unit configured to transmit the datato the communication apparatus via the second access point with whichthe information processing apparatus is connected when the receivingunit receives the transmission instruction; wherein, when the receivingunit receives the transmission instruction in a state where theinformation processing apparatus is not connected with the second accesspoint, the connecting unit connects the information processing apparatuswith the second access point by using the connection information storedin the storage unit, wherein the second connecting unit disconnects theconnection between the mobile communication network and the informationprocessing apparatus in response to the transmission instructionreceived by the receiving unit and connects the information processingapparatus with the mobile communication network when the transmittingunit terminates data transmission, and wherein, when the informationprocessing apparatus is connected with the second access point, thefirst access point is disabled.
 2. The information processing apparatusaccording to claim 1, wherein, when the transmitting unit terminatesdata transmission, the connection of the information processingapparatus with the second access point is released.
 3. The informationprocessing apparatus according to claim 1, wherein the at least oneprocessor further controls a processing unit configured to execute asetting process for enabling the second access point.
 4. The informationprocessing apparatus according to claim 3, wherein the at least oneprocessor further controls a functional-information acquisition unitconfigured to, when the processing unit executes the setting process forenabling the second access point, acquire functional informationregarding the communication apparatus from the communication apparatus,wherein, when the setting process for enabling the second access pointis executed, the connecting unit connects the information processingapparatus with the second access point using the connection informationstored in the storage unit, and when the functional-informationacquisition unit acquires the functional information, the connectingunit releases the connection of the information processing apparatuswith the second access point.
 5. The information processing apparatusaccording to claim 1, wherein the at least one processor furthercontrols a processing unit configured to execute a setting process forconnecting the communication apparatus with an external access pointseparate from the information processing apparatus and the communicationapparatus, wherein the connecting unit connects the informationprocessing apparatus with the external access point.
 6. The informationprocessing apparatus according to claim 1, wherein the at least oneprocessor further controls a transmitting unit configured to, when thereceiving unit receives the transmission instruction, transmit the datato the communication apparatus via an access point with which theinformation processing apparatus is connected, wherein the connectingunit connects the information processing apparatus with an externalaccess point separate from the information processing apparatus and thecommunication apparatus, and wherein, when the transmitting unitterminates data transmission to the communication apparatus via thesecond access point, the connecting unit releases the connection of theinformation processing apparatus with the second access point, and whenthe transmitting unit terminates data transmission to the communicationapparatus via the external access point, the connecting unit does notrelease the connection of the information processing apparatus with theexternal access point.
 7. A non-transitory computer-readable medium thatstores computer executable instructions for causing an informationprocessing apparatus configured to communicate with a communicationapparatus to execute a method, the method comprising: connecting theinformation processing apparatus with a first access point in thecommunication apparatus without receiving input of connectioninformation from a user; acquiring connection information for connectingwith a second access point in the communication apparatus via the firstaccess point with which the information processing apparatus isconnected; connecting the information processing apparatus with a mobilecommunication network via which communication with Internet is able tobe performed; storing the acquired connection information in a memory;and receiving an instruction to transmit data, and transmitting the datato the communication apparatus via the second access point with whichthe information processing apparatus is connected when the transmissioninstruction is received; wherein, when the transmission instruction isreceived in a state where the information processing apparatus is notconnected with the second access point, the information processingapparatus is connected with the second access point by using the storedconnection information, wherein the connection between the mobilecommunication network and the information processing apparatus isdisconnected in response to the transmission instruction received, andthe information processing apparatus is connected with the mobilecommunication network when data transmission is terminated, and wherein,when the information processing apparatus is connected with the secondaccess point, the first access point is disabled.
 8. A method forcontrolling an information processing apparatus configured tocommunicate with a communication apparatus, the method comprising:connecting the information processing apparatus with a first accesspoint in the communication apparatus without receiving input ofconnection information from a user; acquiring connection information forconnecting to a second access point in the communication apparatus viathe first access point with which the information processing apparatusis connected; connecting the information processing apparatus with amobile communication network via which communication with Internet isable to be performed; storing the acquired connection information in amemory; and receiving an instruction to transmit data, and transmittingthe data to the communication apparatus via the second access point withwhich the information processing apparatus is connected when thetransmission instruction is received; wherein, when the transmissioninstruction is received in a state where the information processingapparatus is not connected with the second access point, the informationprocessing apparatus is connected with the second access point by usingthe stored connection information, wherein the connection between themobile communication network and the information processing apparatus isdisconnected in response to the transmission instruction received, andthe information processing apparatus is connected with the mobilecommunication network when data transmission is terminated, and wherein,when the information processing apparatus is connected with the secondaccess point, the first access point is disabled.
 9. The methodaccording to claim 8, wherein, when data transmission ends, connectionbetween the information processing apparatus and the second access pointis released.
 10. The method according to claim 8, further comprisingexecuting a setting process for enabling the second access point. 11.The method according to claim 10, further comprising acquiring, when thesecond access point is enabled, functional information regarding thecommunication apparatus from the communication apparatus, wherein, whenthe second access point is enabled, the information processing apparatusand the second access point are connected using the stored connectioninformation, and when the functional information is acquired, connectionbetween the information processing apparatus and the second access pointis released.
 12. The method according to claim 8, further comprisingtransmitting, when the transmission instruction is received, the data tothe communication apparatus via an access point connected with theinformation processing apparatus, wherein the information processingapparatus connects to an external access point that is separate from theinformation processing apparatus and the communication apparatus, andwherein, when data transmission to the communication apparatus via thesecond access point ends, connection between the information processingapparatus and the second access point is released, and when datatransmission to the communication apparatus via the external accesspoint ends, connection between the information processing apparatus andthe external access point is not released.
 13. The method according toclaim 8, further comprising executing a setting process for connectingthe communication apparatus with an external access point separate fromthe information processing apparatus and the communication apparatus,wherein the information processing apparatus is connectable with theexternal access point separate from the information processing apparatusand the communication apparatus.
 14. The method according to claim 8,wherein the data transmitted on a basis of the transmission instructionis data for causing the communication apparatus to execute printing. 15.The method according to claim 8, further comprising displaying, on adisplay unit, a screen for data acquisition from the Internet via themobile communication network, wherein the data transmitted on a basis ofthe transmission instruction is data acquired from the Internet via thescreen.
 16. The method according to claim 8, wherein the connection ofthe information processing apparatus with the first access point and theconnection of the information processing apparatus with the secondaccess point are Wi-Fi connection.
 17. The information processingapparatus according to claim 1, wherein the data transmitted on a basisof the transmission instruction is data for causing the communicationapparatus to execute printing.
 18. The information processing apparatusaccording to claim 1, further comprising displaying a screen for dataacquisition from the Internet via the mobile communication network,wherein the data transmitted on a basis of the transmission instructionis data acquired from the Internet via the screen.
 19. The informationprocessing apparatus according to claim 1, wherein the connection of theinformation processing apparatus with the first access point and theconnection of the information processing apparatus with the secondaccess point are Wi-Fi connection.